/*
 * Copyright (c) 2015 Messcat. All rights reserved.
 * 
 */
package cc.messcat.service.system;

import cc.messcat.common.service.BaseService;
import cc.messcat.entity.system.Permission;

import java.util.List;

/**
 * 角色接口
 *
 * @author Panda
 * @version 1.0
 */
public interface PermissionService extends BaseService<Permission>{

	void addPermission(Permission permission);

	void modifyPermission(Permission permission);

	void removePermission(Long id);

	Permission retrievePermissionById(Long id);

	List<Permission> retrievePermissionAll();

	List<Permission> retrievePermissionMenu();

	List<Permission> retrieveSubPermissionOptions(Long id);

	Permission getPermissionByURI(String string);

}
